<template>
<scroll-view scroll-y="true" enable-flex="true" class="box">
  这是一个模板页
</scroll-view>

</template>

<script>
	export default {
		data() {
			return {
				title: '我是一个首页'
			}
		},
		options:{
			virtualHost: true
		},	
    created(){

      console.log('首页-->created');
    },
    methods: {

    }
	}
</script>

<style>
.header{ background: red; flex:1; display:flex; align-items:center;}
.box{ background: #ccc; flex:1; min-height: 100rpx; overflow: auto;}
</style>
